package com.alan.shiro.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Auther: Alan liu
 * @Date: 2018/10/31 10:31
 * @Description: 视图页面
 */
@Controller
@RequestMapping("view")
public class ViewController {

    @RequestMapping(value = "html/{index}", method = RequestMethod.GET)
    private String html(@PathVariable("index") String index){
        return "/html/"+index;
    }

    @RequestMapping(value = "hello", method = RequestMethod.GET)
    private String hello(){
        return "hello";
    }

}
